<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <input type="hidden" name="row[id]" value="{$row.id|htmlentities}">
    <div class="form-group">
        <label for="c-photo" class="control-label col-xs-12 col-sm-2">门头照:</label>
        <img src="{$row.photo|htmlentities}" />
    </div>
    <div class="form-group">
        <label for="c-nickname" class="control-label col-xs-12 col-sm-2">用户ID:</label>
        <div class="col-xs-12 col-sm-4">
            <text class="nickname">{$row.uid|htmlentities}</text>
        </div>
    </div>
    <div class="form-group">
        <label for="c-username" class="control-label col-xs-12 col-sm-2">用户手机号:</label>
        <div class="col-xs-12 col-sm-4">
            <text class="nickname">{$row.phone|htmlentities}</text>
        </div>
    </div>
    <div class="form-group">
        <label for="c-phone" class="control-label col-xs-12 col-sm-2">店铺类型:</label>
        <div class="col-xs-12 col-sm-4">
            <text class="nickname">{$row.type|htmlentities}</text>
        </div>
    </div>
    <div class="form-group">
        <label for="c-phone" class="control-label col-xs-12 col-sm-2">店铺名称:</label>
        <div class="col-xs-12 col-sm-4">
            <text class="nickname">{$row.name|htmlentities}</text>
        </div>
    </div>
    <div class="form-group">
        <label for="c-phone" class="control-label col-xs-12 col-sm-2">店铺地址:</label>
        <div class="col-xs-12 col-sm-4">
            <text class="nickname">{$row.address|htmlentities}</text>
        </div>
    </div>
    <div class="form-group">
        <label for="c-phone" class="control-label col-xs-12 col-sm-2">简介:</label>
        <div class="col-xs-12 col-sm-4">
            <text class="nickname">{$row.description|htmlentities}</text>
        </div>
    </div>
    <div class="form-group">
        <label for="c-phone" class="control-label col-xs-12 col-sm-2">支持开发票:</label>
        <div class="col-xs-12 col-sm-4">
            <text class="nickname">{$row.invoice_text|htmlentities}</text>
        </div>
    </div>
    <div class="form-group">
        <label for="c-phone" class="control-label col-xs-12 col-sm-2">子商户号:</label>
        <div class="col-xs-12 col-sm-4">
            <text class="nickname">{$row.sub_mchid|htmlentities}</text>
        </div>
    </div>
    <div class="form-group">
        <label for="c-phone" class="control-label col-xs-12 col-sm-2">店铺状态:</label>
        <div class="col-xs-12 col-sm-4">
            <text class="nickname">{$row.status_text|htmlentities}</text>
        </div>
    </div>
    <div class="form-group">
        <label for="c-phone" class="control-label col-xs-12 col-sm-2">其它:</label>
        <div class="col-xs-12 col-sm-8">
            <text>
            {if condition="$row.business_license"}
            <a href="javascript:" onclick="business_license()">营业执照</a>&nbsp;&nbsp;
            {/if}
            {if condition="$row.corporation"}
            <a href="javascript:" onclick="corporation()">法人信息</a>&nbsp;&nbsp;
            {/if}
            {if condition="$row.store_bank"}
            <a href="javascript:" onclick="store_bank()">绑定银行卡信息</a>&nbsp;&nbsp;
            {/if}
            </text>
        </div>
    </div>
</form>
<style type="text/css">
    .form-group img {
        width: 150px;
    }
    .form-group label {
        margin-right: 50px;
    }
    .form-group text {
        display: block;
        padding-top: 7px;
    }
</style>
<script type="text/javascript">
    let id = {$row.id|htmlentities};
    function business_license() {
        Fast.api.open('merchant/store/business_license?id=' + id, '操作', {
            area: ['600px', '450px']
        });
    }

    function corporation() {
        Fast.api.open('merchant/store/corporation?id=' + id, '操作', {
            area: ['600px', '450px']
        });
    }

    function store_bank() {
        Fast.api.open('merchant/store/bank?id=' + id, '操作', {
            area: ['600px', '450px']
        });
    }
</script>
